package synchronicity.ui;

import javax.microedition.lcdui.Alert;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.Displayable;

import ui.DisplayContext;
import ui.Screen;

public class WaitScreen extends Screen {
	
	private static WaitScreen instance;
	
	private WaitScreen(DisplayContext context){
		super(context);
		waitAlert = new Alert("Please Wait");
	}
	
	public synchronized static WaitScreen getInstance(DisplayContext context){
		if(instance == null)
			instance = new WaitScreen(context);
		return instance;
	}
	
	Alert waitAlert;

	protected Command[] getCommands() {
		return new Command[0];
	}

	protected Displayable getDisplayable() {
		return waitAlert;
	}

	protected String getTitle() {
		return "Synchronicity";
	}

	public void commandAction(Command arg0, Displayable arg1) {
		System.out.println("WaitScreen"+arg0);
		// I think not
	}
}
